<?php
namespace Apps\BoxEdu\Model;

use Think\Model;

class EduClassroomsBookModel extends \BaseModel
{
    public function load($id = "")
    {
        $data = $this->find($id);
        if (!$data) {
            return false;
        }
        $data['area'] = BoxModel("SystemArea")->load($data['province_id']);
        $data['class'] = BoxModel("EduClassrooms")->load($data['classroom_id']);
        $data['school'] = BoxModel("EduSchools")->load($data['school_id']);
        $data['user'] = BoxModel("SystemMember")->load($data['user_id']);
        return $data;
    }


}
 